package com.zheng.wechat.mp.dao.model;

import java.io.Serializable;
import java.util.Date;

public class WechatMpSystemUserAuthorized implements Serializable {
    /**
     * ID
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 用户id
     *
     * @mbg.generated
     */
    private String userId;

    /**
     * 商家姓名
     *
     * @mbg.generated
     */
    private String relName;

    /**
     * 商家手机号
     *
     * @mbg.generated
     */
    private String relPhone;

    /**
     * 授权级别
     *
     * @mbg.generated
     */
    private String authorizedGrade;

    /**
     * 审核状态   0未审核 1审核通过 2审核未通过
     *
     * @mbg.generated
     */
    private String reviewStatus;

    /**
     * logo个性化设置有效截止日期
     *
     * @mbg.generated
     */
    private Date logoSetEndDate;

    /**
     * 活动底部logo取消状态位 0：不取消  1：取消
     *
     * @mbg.generated
     */
    private Integer logoCancelFlag;

    /**
     * 自定义广告位内容
     *
     * @mbg.generated
     */
    private String logoSetContent;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRelName() {
        return relName;
    }

    public void setRelName(String relName) {
        this.relName = relName;
    }

    public String getRelPhone() {
        return relPhone;
    }

    public void setRelPhone(String relPhone) {
        this.relPhone = relPhone;
    }

    public String getAuthorizedGrade() {
        return authorizedGrade;
    }

    public void setAuthorizedGrade(String authorizedGrade) {
        this.authorizedGrade = authorizedGrade;
    }

    public String getReviewStatus() {
        return reviewStatus;
    }

    public void setReviewStatus(String reviewStatus) {
        this.reviewStatus = reviewStatus;
    }

    public Date getLogoSetEndDate() {
        return logoSetEndDate;
    }

    public void setLogoSetEndDate(Date logoSetEndDate) {
        this.logoSetEndDate = logoSetEndDate;
    }

    public Integer getLogoCancelFlag() {
        return logoCancelFlag;
    }

    public void setLogoCancelFlag(Integer logoCancelFlag) {
        this.logoCancelFlag = logoCancelFlag;
    }

    public String getLogoSetContent() {
        return logoSetContent;
    }

    public void setLogoSetContent(String logoSetContent) {
        this.logoSetContent = logoSetContent;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", relName=").append(relName);
        sb.append(", relPhone=").append(relPhone);
        sb.append(", authorizedGrade=").append(authorizedGrade);
        sb.append(", reviewStatus=").append(reviewStatus);
        sb.append(", logoSetEndDate=").append(logoSetEndDate);
        sb.append(", logoCancelFlag=").append(logoCancelFlag);
        sb.append(", logoSetContent=").append(logoSetContent);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WechatMpSystemUserAuthorized other = (WechatMpSystemUserAuthorized) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getRelName() == null ? other.getRelName() == null : this.getRelName().equals(other.getRelName()))
            && (this.getRelPhone() == null ? other.getRelPhone() == null : this.getRelPhone().equals(other.getRelPhone()))
            && (this.getAuthorizedGrade() == null ? other.getAuthorizedGrade() == null : this.getAuthorizedGrade().equals(other.getAuthorizedGrade()))
            && (this.getReviewStatus() == null ? other.getReviewStatus() == null : this.getReviewStatus().equals(other.getReviewStatus()))
            && (this.getLogoSetEndDate() == null ? other.getLogoSetEndDate() == null : this.getLogoSetEndDate().equals(other.getLogoSetEndDate()))
            && (this.getLogoCancelFlag() == null ? other.getLogoCancelFlag() == null : this.getLogoCancelFlag().equals(other.getLogoCancelFlag()))
            && (this.getLogoSetContent() == null ? other.getLogoSetContent() == null : this.getLogoSetContent().equals(other.getLogoSetContent()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getRelName() == null) ? 0 : getRelName().hashCode());
        result = prime * result + ((getRelPhone() == null) ? 0 : getRelPhone().hashCode());
        result = prime * result + ((getAuthorizedGrade() == null) ? 0 : getAuthorizedGrade().hashCode());
        result = prime * result + ((getReviewStatus() == null) ? 0 : getReviewStatus().hashCode());
        result = prime * result + ((getLogoSetEndDate() == null) ? 0 : getLogoSetEndDate().hashCode());
        result = prime * result + ((getLogoCancelFlag() == null) ? 0 : getLogoCancelFlag().hashCode());
        result = prime * result + ((getLogoSetContent() == null) ? 0 : getLogoSetContent().hashCode());
        return result;
    }
}